﻿//*** Guidance generated code ***//
using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Linq;

using ProjectBase.Core;

namespace $safeprojectname$
{
    public interface IHaveHierarchy : ICodeList
    {
        int? ParentId { get; set; }
    }
    public interface IHaveHierarchy<out TEntity> : IHaveHierarchy
        where TEntity : ICodeList
    {
        TEntity Parent { get; }
        IEnumerable<TEntity> Children { get; }
    }
}